<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="http://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>爱好</h1>
        <ul>
            <li v-for="likes in like">
                {{likes.name}}
                <span v-html="likes.butt"></span>
            </li>
            <li v-for="(a,b) in like">
                {{a}}
                {{b}}
            </li>
            <li v-for="(item,key,index) in like[0]">
                {{index}}---{{item}}---{{key}} 
            </li>
        </ul>
    </div>
    <script>
        const vm = new Vue({
            el:"#app",
        data:{
            like:[
                {
                    name: '打游戏',
                    butt: '<button>选择</button>'
                },
                {
                    name: '编辑',
                    butt: '<button>选择</button>'
                },
                {
                    name: '看电视',
                    butt: '<button>选择</button>'
                },

               ]  
            }

        });
        
    </script>
</body>
</html>